<?xml version="1.0"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html><head><title>com.sekati.data.XML2Object - SASAPI</title><script src="../../../quicknav.js" type="text/javascript"></script><script><!--
document.quicknavBasePath="../../../index-files";
//--></script><link href="../../../style.css" title="JavaDoc" rel="stylesheet" type="text/css"/><link href="../../../unnatural.css" title="Unnatural" rel="alternate stylesheet" type="text/css"/><link href="../../../overview-summary.html" title="Overview" rel="top"/><link href="package-summary.html" title="Package com.sekati.data" rel="up"/><link href="../../../com/sekati/data/XMLSA.html" title="Class com.sekati.data.XMLSA" rel="prev"/><link href="../../../com/sekati/data/SoundCenter.html" title="Class com.sekati.data.SoundCenter" rel="next"/><meta name="generator" content="http://www.badgers-in-foil.co.uk/projects/as2api/"/></head><body><h1>Class com.sekati.data.XML2Object</h1><div class="type_hierachy"><ul><li><strong>com.sekati.data.XML2Object</strong></li></ul></div><div class="type_description"><h2>Description</h2><p>
 return an object with the content of the XML translated<br/>
 note: a node name with "-" will be replaced with "_" for flash compatibility.
 for example <FIRST-NAME> will become FIRST_NAME
 If a node has more than 1 child with the same name, an array is created with the children contents
 
 <pre> The object created will have <span class="key">this</span> structure:
 	obj {
 		nodeName : {
 			attributes : an object containing the node attributes
 			data : an object containing the node contents
 		}
 	}	
 	Usage:
 		<span class="key">var</span> data:Object = <span class="key">new</span> XML2Object().parseXML(myXML);
 </pre>
 </p></div><div class="type_indexes"><div class="field_index"><h2>Field Index</h2><a href="#xml" title="public xml:XML">xml</a></div><div class="method_index"><h2>Method Index</h2><a href="#parseXML" title="function parseXML(sFile:XML):Object">parseXML()</a></div></div><div class="type_details"><div class="field_detail_list"><h2>Field Detail</h2><a name="xml"></a><h3>xml</h3><div class="field_details"><code class="field_synopsis">public <strong class="field_name">xml</strong>:<span class="unresolved_type_name">XML</span> <em class="read_write_only">[Read Only]</em></code><div class="field_info">
 return the xml passed in the parseXML method
 <pre> Usage: 
 	theXML = XML2Object.xml
 </pre>
	 </div></div></div><div class="method_detail_list"><h2>Method Detail</h2><div class="method_details alt_row"><a name="parseXML"></a><h3>parseXML</h3><code class="method_synopsis">function <strong class="method_name">parseXML</strong>(sFile:<span class="unresolved_type_name">XML</span>):<span class="unresolved_type_name">Object</span></code><div class="method_info"><p>
 parse an XMLObject
 </p><h4>Parameters</h4><table class="arguments extra_info" summary=""><tr><td><code>sFile</code></td><td>(XML)
 </td></tr></table><h4>Return</h4><p class="extra_info">  Object - the contents of the parsed XML
 <pre> Usage:
 	XML2Object.parseXML( theXMLtoParse );
 </pre>
	 </p></div></div></div></div><ul class="main_nav" id="main_nav"><li><a href="../../../overview-summary.html" title="Overview of SASAPI" class="button">Overview</a></li><li><a href="package-summary.html" title="Overview of package com.sekati.data" class="button">Package</a></li><li><span class="button nav_current">Class</span></li><li><a href="XML2Object.as.html" title="Source code of com.sekati.data.XML2Object" class="button">Source</a></li><li><a href="../../../index-files/index.html" title="Alpabetical index of types and members" class="button">Index</a></li></ul><div class="footer"><a href="http://www.badgers-in-foil.co.uk/projects/as2api/" title="ActionScript 2 API Documentation Generator">as2api</a></div></body></html>